package org.zjx.analysis.analyze.login;


import org.zjx.analysis.analyze.AbstractImageAnalyzer;
import org.zjx.command.util.ImageUtil;

import java.awt.*;
import java.awt.image.BufferedImage;

public class LoginChooseTypeAnalysis  extends AbstractImageAnalyzer {

    public LoginChooseTypeAnalysis() {
        super("登录-选择游戏模式", "登录");
    }

    @Override
    protected void initResources() {
        imageMap.put("老手模式", new ResolutionImage(ImageUtil.createRect(530,383, 629,408), ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAAGQAAAAaCAYAAABByvnlAAAKWElEQVR42u1a+18VxxX3D7CJNVEqGqsgWvCJisgbRaWAClwjaMBn1ZjW+CBgglUURar4aDVSJUVtVFSCBFCQR0AvIAIGbhJfWDGKKSlRG22j1BLF0zln7szuXu5FIkjzyccfvp89c3Zmdub73TOv3S76lCh4dPsgPH6QC1AXCXB1McD1pZZxY4UCzK/G36PNYG1LfB3344dop7n2m+2nEaacCKh5ux4BcG0J55qV+c/1jaDfMwUyN02FLpiA768QSJQvpgNcnv3DcWW+1v4p41n4McXFGQrXTDDUITMuALrAzSj4/tYBAmUw6AA+e719wDo0CFZA94N//GgvB23lqTqQi8Mi73SCNxPkxjsA5b4An07hmVCUF+g8oCDlfoCBUbbFkwlyPgQgzxOgwOsF/p+4NNMoiCEIINudO1GYF+h8IP8sWjo1Qh6f9IRzm4dATaIjXN41AvJX2UFjlhvcS3Mxm7/hkDNUbRlKdlO2B1zYMRy++OMwDa7sdoQn+S3L7p3bB+6mauv9Lt0VimPtLbav/kMnqlPta2a8GLYNe/7RgfwzQU5t9DAKgs6icR2KB8fdIW2pDewM7QUrnLtKZL9rB6lL+sNK95egcM2vyPfJmkEtyqN/d5g12Wt8umnqUOPYMhvKo491oDoR4h7a0V7d4F66G5xj4qLPUnsTAntA4sxeZDflesG/MtygMIa3D22BxhMeHc4V8c8EObxsiFEQdOp9OhRfH3GBd1x+BnH+r1Kn9s57DZ6c5veyouw4Ocw+Ez+EE7vCVpb9cFFf8j3M86Y0icbIMX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mJe5E3sxEVE0OrVlwuCnONnXOTVOIfwCFF/oMIHYYVCEPVHFJFWEa7AQqdqf/t0YKMQrX3Hf94QbWhLey0KqBIKr/jdHDkTCyPBJc7TKAjyLSIEJ3i5yroZpWxQUFWsSMwbIkrEt19TksWHenMkPwvh6h8BOhNtEcu0T+aEEv1EG+vFnx6QS+RX76PsPZBbLIOcikmfjVRHI4YyQerXcTGQeDGPiIaIykUUYOVi4hLzhsinbrhZASJUnY9oCfE3BsLSnxsdCXNt0LRF3c5WRFL7BT/4AiOXNFRFKH+ZiBcYISb9UmPEsMDggtzerQxTYreOVxEZWFBEi3r9rR7GUEQUrbVIEISLa2eQ3h6xNO210Cd8y4UI9G3cuHUQVzFcIafihcd7IirE3gT9d/bA+3MHQZdKtoHD/7Ja/JOk+f/I5F+qbxIUmPOhyD91iL6b8mQKGY0mL6bqHy7kvzzJDZZ72ECXdeP6wYkYO6j6eLoKIYRqFSz5NHZakFkYjgUT1LY5qPPjteqYjl9N6qtSwdIzq9IC2wjzeU2fW2WpXuQrI8Q8TLgjZITKe1WZM+h6fLUdxHj0g0WetvA/ZimyIFrRYZsAAAAASUVORK5CYII=")));

    }

    @Override
    protected boolean isSceneMatch(BufferedImage image) {
        ResolutionImage resolutionImage = imageMap.get("老手模式");
        return ImageUtil.haveImage(image,resolutionImage.getRectangle(),resolutionImage.getPattern());
    }

    @Override
    public void analyze(BufferedImage image) {

    }

    public Rectangle getChooseTypeRectangle() {
        return imageMap.get("老手模式").getRectangle();
    }
}
